package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Mybatis Generator on 2023/12/08
 */
@Data
@ApiModel("问诊价格设置pricing and timing")
@Table(name = "tbl_pricing_timing")
@NoArgsConstructor
@AllArgsConstructor
public class TblPricingTiming extends BaseEntity {

    @Column(name = "country_id")
    private String countryId;

    /**
     * Consultation hour:0 normal,1 special
     */
    @ApiModelProperty("Consultation hour:0 normal,1 special")
    private Integer type;

    /**
     * companyId有值的时候属于集团的数据
     * 没值的时候数据国家数据
     */
    @Column(name = "company_id")
    @ApiModelProperty(value = "companyId", name = "companyId", example = "companyId")
    private String companyId;

    /**
     * 类型
     * 0:office hours
     * 1:after hours
     * 2:close
     */
    @Column(name = "office_type")
    @ApiModelProperty("类型 0:office hours ;1:after hours ;2:close")
    private Integer officeType;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    private BigDecimal value;

    @Column(name = "time_start")
    private String timeStart;

    @Column(name = "time_end")
    private String timeEnd;

    private Integer status;

    /**
     * 普通时间存星期几的数字，节假日存名称
     * 星期 1 为0,星期天为6
     */
    @ApiModelProperty("普通时间存星期几的数字，节假日存名称 ;星期 1 为0,星期天为6")
    private String name;
}